const routerDataSource = [
  {
    id: '1',
    name: 'Index',
    title: '首页',
    icon: 'iconfont icon-shouye',
    path: '/indexs/index',
    perm: 'indexs:index:menu',
    component: () => import('@/views/indexs/index.vue'),
  },
  {
    id: '2',
    name: 'Users',
    title: '用户管理',
    icon: 'iconfont icon-fenzuguanli',
    path: '',
    perm: 'users:user:folder',
    children: [
      {
        id: '21',
        name: 'Permission',
        title: '权限管理',
        icon: 'iconfont icon-yonghuming',
        path: '/users/permission',
        perm: 'users:user:menu',
        component: () => import('@/views/users/Permission.vue'),
      },
      {
        id: '22',
        name: 'Role',
        title: '角色管理',
        icon: 'iconfont icon-yonghuming',
        path: '/users/role',
        perm: 'users:role:menu',
        component: () => import('@/views/users/Role.vue'),
      },
      {
        id: '23',
        name: 'User',
        title: '用户管理',
        icon: 'iconfont icon-yonghuming',
        path: '/users/user',
        perm: 'users:user:menu',
        component: () => import('@/views/users/User.vue'),
      },
    ],
  },
  {
    id: '3',
    name: 'Stores',
    title: '门店管理',
    icon: 'iconfont icon-fenzuguanli',
    path: '',
    perm: 'stores:store:folder',
    children: [
      {
        id: '31',
        name: 'StoreCategoty',
        title: '门店分类',
        icon: 'iconfont icon-yingjian',
        path: '/stores/storeCategoty',
        perm: 'stores:storecategoty:menu',
        component: () => import('@/views/stores/StoreCategory.vue'),
      },
      {
        id: '32',
        name: 'StoreGroup',
        title: '门店区域',
        icon: 'iconfont icon-yingjian',
        path: '/stores/storeGroup',
        perm: 'stores:storegroup:menu',
        component: () => import('@/views/stores/storeGroup.vue'),
      },
      {
        id: '33',
        name: 'Store',
        title: '门店管理',
        icon: 'iconfont icon-yingjian',
        path: '/stores/store',
        perm: 'stores:store:menu',
        component: () => import('@/views/stores/store.vue'),
      },
    ],
  },
  {
    id: '4',
    name: 'TeaProductions',
    title: '茶饮生产管理',
    icon: 'iconfont icon-fenzuguanli',
    path: '',
    perm: 'teaproductions:teaproduction:folder',
    children: [
      {
        id: '42',
        name: 'RecipeCategory',
        title: '配方分类',
        icon: 'iconfont icon-yingjian',
        path: '/teaproductions/recipeCategory',
        perm: 'teaproductions:recipecategory:menu',
        component: () =>
          import(
            '@/views/teaproductions/fmsRecipeCategory/RecipeCategoryList.vue'
          ),
      },
      {
        id: '41',
        name: 'Recipe',
        title: '配方管理',
        icon: 'iconfont icon-yingjian',
        path: '/teaproductions/recipe',
        perm: 'teaproductions:recipe:menu',
        component: () =>
          import(
            '@/views/teaproductions/fmsFormulaManage/FormulaManageList.vue'
          ),
      },
      {
        id: '43',
        name: 'RecipeMaterial',
        title: '规格配置',
        icon: 'iconfont icon-yingjian',
        path: '/teaproductions/recipeMaterial',
        perm: 'teaproductions:recipematerial:menu',
        component: () =>
          import(
            '@/views/teaproductions/fmsSpecificationConfig/SpecificationConfigList.vue'
          ),
      },
      {
        id: '44',
        name: 'MaterialUnit',
        title: '物料单位',
        icon: 'iconfont icon-yingjian',
        path: '/teaproductions/materialUnit',
        perm: 'teaproductions:materialunit:menu',
        component: () =>
          import('@/views/teaproductions/fmsMaterialUnit/MaterialUnitList.vue'),
      },
      {
        id: '45',
        name: 'MaterialType',
        title: '物料类型',
        icon: 'iconfont icon-yingjian',
        path: '/teaproductions/materialType',
        perm: 'teaproductions:materialtype:menu',
        component: () =>
          import(
            '@/views/teaproductions/fmsMaterialCategory/MaterialCategoryList.vue'
          ),
      },
      {
        id: '46',
        name: 'Material',
        title: '物料管理',
        icon: 'iconfont icon-yingjian',
        path: '/teaproductions/material',
        perm: 'teaproductions:material:menu',
        component: () =>
          import(
            '@/views/teaproductions/fmsMaterialConfig/MaterialConfigList.vue'
          ),
      },
      // {
      //   id: "47",
      //   name: "MaterialPrecisionTemplate",
      //   title: "物料精度模版",
      //   icon: "iconfont icon-yingjian",
      //   path: "/teaproductions/materialPrecisionTemplate",
      //   perm: "teaproductions:materialprecisiontemplate:menu",
      //   component: () =>
      //     import("@/views/teaproductions/materialPrecisionTemplate.vue")
      // }
    ],
  },

  {
    id: '100',
    name: 'PullTeaManages',
    title: '拉茶机数据',
    icon: 'iconfont icon-fenzuguanli',
    path: '',
    perm: 'pullTeaManages:pullTeaManage:folder',
    children: [
      {
        id: '1001',
        name: 'DmsPullTeaData',
        title: '拉茶数据管理',
        icon: 'iconfont icon-yingjian',
        path: '/pullTeaManages/data',
        perm: 'pullTeaManages:data:menu',
        component: () =>
          import('@/views/pulltea/dmsPullTeaData/PullTeaDataList.vue'),
      },
      {
        id: '1002',
        name: 'DmsPullTeaAlarm',
        title: '拉茶告警处理',
        icon: 'iconfont icon-yingjian',
        path: '/pullTeaManages/alarm',
        perm: 'pullTeaManages:alarm:menu',
        component: () =>
          import('@/views/pulltea/dmsPullTeaAlarm/PullTeaAlarmList.vue'),
      },
      {
        id: '1003',
        name: 'DmsPullTeaPart',
        title: '拉茶零件管理',
        icon: 'iconfont icon-yingjian',
        path: '/pullTeaManages/part',
        perm: 'pullTeaManages:part:menu',
        component: () =>
          import('@/views/pulltea/dmsPullTeaMototime/PullTeaMototimeList.vue'),
      },
    ],
  },
  {
    id: '5',
    name: 'FoodSafetys',
    title: '食品安全规则',
    icon: 'iconfont icon-fenzuguanli',
    path: '',
    perm: 'foodsafetys:foodsafetys:folder',
    children: [
      {
        id: '51',
        name: 'BusinessStart',
        title: '设置营业准备',
        icon: 'iconfont icon-yingjian',
        path: '/foodsafetys/businessStart',
        perm: 'foodsafetys:businessstart:menu',
        component: () =>
          import(
            '@/views/foodSafetyRuleSetting/fdsBusinessStartRuleset/FdsBusinessStartRulesetList.vue'
          ),
      },
      {
        id: '52',
        name: 'BusinessEnd',
        title: '设置打烊规则',
        icon: 'iconfont icon-yingjian',
        path: '/foodsafetys/businessEnd',
        perm: 'foodsafetys:businessend:menu',
        component: () =>
          import(
            '@/views/foodSafetyRuleSetting/fdsBusinessClosingRuleset/FdsBusinessClosingRulesetList.vue'
          ),
      },
      {
        id: '53',
        name: 'WarningRules',
        title: '设置预警规则',
        icon: 'iconfont icon-yingjian',
        path: '/foodsafetys/warningrules',
        perm: 'foodsafetys:warningrules:menu',
        component: () =>
          import(
            '@/views/foodSafetyRuleSetting/fdsEarlywarningRuleset/FdsEarlywarningRulesetList.vue'
          ),
      },
      {
        id: '54',
        name: 'SetPutMaterialRules',
        title: '设置排料规则',
        icon: 'iconfont icon-yingjian',
        path: '/foodsafetys/setPutMaterialRules',
        perm: 'foodsafetys:setPutMaterialRules:menu',
        component: () =>
          import(
            '@/views/foodSafetyRuleSetting/fdsMaterialDischargeRuleset/FdsMaterialDischargeRulesetList.vue'
          ),
      },
      {
        id: '55',
        name: 'SetMaterialRules',
        title: '设置物料使用规则',
        icon: 'iconfont icon-yingjian',
        path: '/foodsafetys/setMaterialRules',
        perm: 'foodsafetys:setMaterialRules:menu',
        component: () =>
          import(
            '@/views/foodSafetyRuleSetting/fdsMaterialUsageRuleset/FdsMaterialUsageRulesetList.vue'
          ),
      },
      {
        id: '56',
        name: 'SetCleanRules',
        title: '设置清洗规则',
        icon: 'iconfont icon-yingjian',
        path: '/foodsafetys/setCleanRules',
        perm: 'foodsafetys:setCleanRules:menu',
        component: () =>
          import(
            '@/views/foodSafetyRuleSetting/fdsCleaningRuleset/FdsCleaningRulesetList.vue'
          ),
      },
    ],
  },
  {
    id: '9',
    name: 'CommonRecordReports',
    title: '日常报表',
    icon: 'iconfont icon-fenzuguanli',
    path: '',
    perm: 'commonRecordReports:commonRecordReport:folder',
    children: [
      {
        id: '91',
        name: 'CrrSupplementRecordreport',
        title: '补料记录报表',
        icon: 'iconfont icon-yingjian',
        path: '/commonRecordReport/crrSupplementRecordreport',
        perm: 'commonRecordReport:crrSupplementRecordreport:menu',
        component: () =>
          import(
            '@/views/commonRecordReport/crrSupplementRecordreport/CrrSupplementRecordreportList.vue'
          ),
      },
      {
        id: '92',
        name: 'CrrMaterialScrapReport',
        title: '物料报废记录报表',
        icon: 'iconfont icon-yingjian',
        path: '/commonRecordReport/crrMaterialScrapReport',
        perm: 'commonRecordReport:crrMaterialScrapReport:menu',
        component: () =>
          import(
            '@/views/commonRecordReport/crrMaterialScrapReport/CrrMaterialScrapReportList.vue'
          ),
      },
      {
        id: '93',
        name: 'CrrMaterialSummaryReport',
        title: '物料汇总报表',
        icon: 'iconfont icon-yingjian',
        path: '/commonRecordReport/crrMaterialSummaryReport',
        perm: 'commonRecordReport:crrMaterialSummaryReport:menu',
        component: () =>
          import(
            '@/views/commonRecordReport/crrMaterialSummaryReport/CrrMaterialSummaryReportList.vue'
          ),
      },
      {
        id: '94',
        name: 'CrrCleaningSummaryReport',
        title: '清洗汇总报表',
        icon: 'iconfont icon-yingjian',
        path: '/commonRecordReport/crrCleaningSummaryReport',
        perm: 'commonRecordReport:crrCleaningSummaryReport:menu',
        component: () =>
          import(
            '@/views/commonRecordReport/crrCleaningSummaryReport/CrrCleaningSummaryReportList.vue'
          ),
      },
    ],
  },
  {
    id: '10',
    name: 'OperatorRecordReport',
    title: '运营报表',
    icon: 'iconfont icon-fenzuguanli',
    path: '',
    perm: 'operatorRecordReports:operatorRecordReport:folder',
    children: [
      {
        id: '101',
        name: 'OrrOutcupStatistics',
        title: '出杯统计报表',
        icon: 'iconfont icon-yingjian',
        path: '/operatorRecordReport/orrOutcupStatistics',
        perm: 'operatorRecordReport:orrOutcupStatistics:menu',
        component: () =>
          import(
            '@/views/operatorRecordReport/orrOutcupStatistics/OrrOutcupStatisticsList.vue'
          ),
      },
      {
        id: '102',
        name: 'OrrOutcupEfficiencyDetail',
        title: '出杯效率明细报表',
        icon: 'iconfont icon-yingjian',
        path: '/operatorRecordReport/orrOutcupEfficiencyDetail',
        perm: 'operatorRecordReport:orrOutcupEfficiencyDetail:menu',
        component: () =>
          import(
            '@/views/operatorRecordReport/orrOutcupEfficiencyDetail/OrrOutcupEfficiencyDetailList.vue'
          ),
      },
      {
        id: '103',
        name: 'OrrOutcupEfficiencySummary',
        title: '出杯效率汇总报表',
        icon: 'iconfont icon-yingjian',
        path: '/operatorRecordReport/orrOutcupEfficiencySummary',
        perm: 'operatorRecordReport:orrOutcupEfficiencySummary:menu',
        component: () =>
          import(
            '@/views/operatorRecordReport/orrOutcupEfficiencySummary/OrrOutcupEfficiencySummaryList.vue'
          ),
      },
      {
        id: '104',
        name: 'OrrOutcupAbnormalSummary',
        title: '出杯异常汇总报表',
        icon: 'iconfont icon-yingjian',
        path: '/operatorRecordReport/orrOutcupAbnormalSummary',
        perm: 'operatorRecordReport:orrOutcupAbnormalSummary:menu',
        component: () =>
          import(
            '@/views/operatorRecordReport/orrOutcupAbnormalSummary/OrrOutcupAbnormalSummaryList.vue'
          ),
      },
      {
        id: '105',
        name: 'OrrOutcupDifferenceAnalysis',
        title: '出杯差异分析报表',
        icon: 'iconfont icon-yingjian',
        path: '/operatorRecordReport/orrOutcupDifferenceAnalysis',
        perm: 'operatorRecordReport:orrOutcupDifferenceAnalysis:menu',
        component: () =>
          import(
            '@/views/operatorRecordReport/orrOutcupDifferenceAnalysis/OrrOutcupDifferenceAnalysisList.vue'
          ),
      },
      {
        id: '106',
        name: 'OrrOutcupHourlyDispensing',
        title: '营业时段出杯报表',
        icon: 'iconfont icon-yingjian',
        path: '/operatorRecordReport/orrOutcupHourlyDispensing',
        perm: 'operatorRecordReport:orrOutcupHourlyDispensing:menu',
        component: () =>
          import(
            '@/views/operatorRecordReport/orrOutcupHourlyDispensing/OrrOutcupHourlyDispensingList.vue'
          ),
      },
      {
        id: '107',
        name: 'OrrBusinessDurationEfficiency',
        title: '营业时段效率汇总',
        icon: 'iconfont icon-yingjian',
        path: '/operatorRecordReport/orrBusinessDurationEfficiency',
        perm: 'operatorRecordReport:orrBusinessDurationEfficiency:menu',
        component: () =>
          import(
            '@/views/operatorRecordReport/orrBusinessDurationEfficiency/OrrBusinessDurationEfficiencyList.vue'
          ),
      },
      {
        id: '108',
        name: 'OrrMaterialInterruptSummary',
        title: '物料终端汇总报表',
        icon: 'iconfont icon-yingjian',
        path: '/operatorRecordReport/orrMaterialInterruptSummary',
        perm: 'operatorRecordReport:orrMaterialInterruptSummary:menu',
        component: () =>
          import(
            '@/views/operatorRecordReport/orrMaterialInterruptSummary/OrrMaterialInterruptSummaryList.vue'
          ),
      },
      {
        id: '109',
        name: 'orrDeviceOperatorStatus',
        title: '设备运行状态报表',
        icon: 'iconfont icon-yingjian',
        path: '/operatorRecordReport/orrDeviceOperatorStatus',
        perm: 'operatorRecordReport:orrDeviceOperatorStatus:menu',
        component: () =>
          import(
            '@/views/operatorRecordReport/orrDeviceOperatorStatus/OrrDeviceOperatorStatusList.vue'
          ),
      },
      {
        id: '1010',
        name: 'orrMaterialCalibrationDetail',
        title: '物料校准明细报表',
        icon: 'iconfont icon-yingjian',
        path: '/operatorRecordReport/orrMaterialCalibrationDetail',
        perm: 'operatorRecordReport:orrMaterialCalibrationDetail:menu',
        component: () =>
          import(
            '@/views/operatorRecordReport/orrMaterialCalibrationDetail/OrrMaterialCalibrationDetailList.vue'
          ),
      },
    ],
  },

  {
    id: '6',
    name: 'MachineManages',
    title: '机台管理',
    icon: 'iconfont icon-fenzuguanli',
    path: '',
    perm: 'machineManages:machineManage:folder',
    children: [
      {
        id: '61',
        name: 'ProductCategory',
        title: '机台SPU分类',
        icon: 'iconfont icon-yingjian',
        path: '/machineManages/productCategory',
        perm: 'machineManages:productCategory:menu',
        component: () =>
          import(
            '@/views/machineManages/dmsProductCategory/ProductCategoryList.vue'
          ),
      },
      {
        id: '62',
        name: 'DeviceProduct',
        title: '机台SPU管理',
        icon: 'iconfont icon-yingjian',
        path: '/machineManages/deviceProduct',
        perm: 'machineManages:deviceProduct:menu',
        component: () =>
          import(
            '@/views/machineManages/dmsDeviceCategory/DeviceCategoryList.vue'
          ),
      },
      {
        id: '63',
        name: 'MachineManage',
        title: '机台SKU管理',
        icon: 'iconfont icon-yingjian',
        path: '/machineManages/deviceInfo',
        perm: 'machineManages:deviceInfo:menu',
        component: () =>
          import('@/views/machineManages/dmsDeviceInfo/DeviceInfoList.vue'),
      },
      {
        id: '64',
        name: 'PreDeployment',
        title: '预部署机台',
        icon: 'iconfont icon-yingjian',
        path: '/machineManages/devicePreDeply',
        perm: 'machineManages:devicepredeply:menu',
        component: () =>
          import(
            '@/views/machineManages/dmsDevicePreload/DevicePreloadList.vue'
          ),
      },
      {
        id: '65',
        name: 'MachineMaintain',
        title: '机台保养设置',
        icon: 'iconfont icon-yingjian',
        path: '/machineManages/maintain',
        perm: 'machineManages:maintain:menu',
        component: () =>
          import(
            '@/views/machineManages/dmsDeviceMaintain/DeviceMaintainList.vue'
          ),
      },
      {
        id: '66',
        name: 'MachineLockNetwork',
        title: '机台断网设置',
        icon: 'iconfont icon-yingjian',
        path: '/machineManages/locknetwork',
        perm: 'machineManages:locknetwork:menu',
        component: () =>
          import(
            '@/views/machineManages/dmsDeviceLockNetwork/DeviceLockNetworkList.vue'
          ),
      },
    ],
  },
  {
    id: '7',
    name: 'MessageManages',
    title: '短信管理',
    icon: 'iconfont icon-fenzuguanli',
    path: '',
    perm: 'messageManages:messageManage:folder',
    children: [
      {
        id: '71',
        name: 'MessageList',
        title: '短信管理',
        icon: 'iconfont icon-yingjian',
        path: '/messageManages/messageList',
        perm: 'messageManages:messageList:menu',
        component: () => import('@/views/messageManages/messageList.vue'),
      },
      {
        id: '72',
        name: 'VoiceList',
        title: '语音管理',
        icon: 'iconfont icon-yingjian',
        path: '/messageManages/voiceList',
        perm: 'messageManages:voiceList:menu',
        component: () => import('@/views/messageManages/voiceList.vue'),
      },
    ],
  },
  {
    id: '8',
    name: 'SystemManages',
    title: '系统管理',
    icon: 'iconfont icon-fenzuguanli',
    path: '',
    perm: 'systemManages:systemManage:folder',
    children: [
      {
        id: '81',
        name: 'UserFeedback',
        title: '用户反馈',
        icon: 'iconfont icon-yingjian',
        path: '/systemManages/userFeedback',
        perm: 'systemManages:userFeedback:menu',
        component: () => import('@/views/systemManages/userFeedback.vue'),
      },
      {
        id: '82',
        name: 'VersionManage',
        title: '版本管理',
        icon: 'iconfont icon-yingjian',
        path: '/systemManages/versionManage',
        perm: 'systemManages:versionManage:menu',
        component: () => import('@/views/systemManages/versionManage.vue'),
      },
      {
        id: '83',
        name: 'NoticeManage',
        title: '消息管理',
        icon: 'iconfont icon-yingjian',
        path: '/systemManages/noticeManage',
        perm: 'systemManages:noticeManage:menu',
        component: () => import('@/views/systemManages/noticeManage.vue'),
      },
    ],
  },
]
export default routerDataSource
